// 验证规则
const [cid, sq_months, xf_money, yf_money, sq_money] = [
  [
    {required: true, message: '请选择商家'},
    {type: 'integer', message: '商家不存在'}
  ],
  [
    {required: true, message: '请选择申请期数'},
    {type: 'integer', message: '申请期数不存在'},
  ],
  [
    {required: true, message: '请填写消费总额'},
    {type: 'integer', message: '消费总额格式不正确'}
  ],
  [
    {required: true, message: '请填写已付金额'},
    {type: 'integer', message: '首付金额格式不正确'},
  ],
  [
    {required: true, message: '分期金额不能为空'},
    {type: 'integer', min: 1, message: '分期金额必须大于0'},
  ],
];

// 验证场景
const scene = {
  addOrder: {cid, sq_months, xf_money, yf_money, sq_money},
};

export default scene;
